/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MCP3204_H__
#define __MCP3204_H__

/* Includes ------------------------------------------------------------------ */
#include "stm32_spi.h"


#define MCP3204_READ_START  0x04

#define MCP3204_INPUT_SINGLE  0x02
#define MCP3204_INPUT_DIFFER  0x00

#define MCP3204_CHANNEL_0  0x00
#define MCP3204_CHANNEL_1  0x01
#define MCP3204_CHANNEL_2  0x02
#define MCP3204_CHANNEL_3  0x03


int32_t MCP3204_Init(void);
uint16_t MCP3204_GetVal(uint8_t Channel);
int32_t MCP3204_Get_AllVal(uint16_t *buffer);

#endif


